@extends('akl.Admin.Base-index')
@section('content')
<script>
	$('#left-bar .nav>li:nth-child(4)>.menu').addClass('on');
</script>
<div class="main-menu fadeInLeft">
	<div class="title">
		<i class="fa fa-file-text-o"></i> 导航列表
	</div>
	<ul class="act-list">
		<li>
			<a href="add"><i class="fa fa-plus-square-o"></i>添加导航</a>
		</li>
	</ul>
</div>

<div class="main-wrap fadeInRight">
	<table class="tablePanel2" >
		<tr>
			<th>id</th>
			<th>名称</th>
			<th>路径</th>
	        <th>上级</th>
	        <th>操作</th>
		</tr>
		@foreach($permission as $sort)
			<tr >
				<td>{{ $sort->id  }} </td>
				<td>{{ $sort->display_name  }} </td>
				<td>{{ $sort->name  }} </td>
       			<td>{{ $sort->parentmenu  }}</td>
				<td><a class="act-btn" href="/Admin/Nav/del/id/{{ $sort->id  }} " onclick="return confirm('确实要隐藏吗？')">隐藏</a>
					<a class="act-btn" href=/Admin/Nav/edit/id/{{ $sort->id  }}>编辑</a></td>
			</tr>
		@endforeach
	</table>
	<div class="pagenav">
		{{--{{ $permission->links() }}--}}
	</div>
</div>

@endsection